#ifndef LASERCAMERACONTROLINSVIEW_H
#define LASERCAMERACONTROLINSVIEW_H

#include <QWidget>

namespace Ui {
class LaserCameraControlInsView;
}

#include "../ProgramSet/lasercameractrlinstruction.h"

class LaserCameraControlInsView : public QWidget
{
    Q_OBJECT

public:
    explicit LaserCameraControlInsView(int styleIdIn,QWidget *parent = 0);
    ~LaserCameraControlInsView();

public:
    /**
     * @brief getInput             获取界面输入
     */
    void getInput(LaserCameraCtrlInstruction &instructionParaOut);

    /**
     * @brief updateView            根据instructionPara更新数据显示在界面
     */
    void updateView();

    /**
     * @brief changeLanguage      界面语言切换
     * @param language
     */
    void changeLanguage(int language);

    void initialDisplayStyle(int styleId);
private:
    void finishEditInstruction(LaserCameraCtrlInstruction instructionParaIn,QString &instructionStrOut);

private slots:
    void on_clearNote_Btn_clicked();

    void on_save_Btn_clicked();


signals:
    /**
     * @brief cleanNoteStrSignal             删除注释信号
     */
    void cleanNoteStrSignal();


    /**
     * @brief saveInstructionSignal         保存指令
     * @param instructionStr                指令字符串
     */
    void saveInstructionSignal(const QString& instructionStr);




public:
        QString instructionStr;
        LaserCameraCtrlInstruction instructionPara;

private:
    Ui::LaserCameraControlInsView *ui;
};

#endif // LASERCAMERACONTROLINSVIEW_H
